package com.nunbey.lingxi.lincat.ui;

import android.content.Context;

import androidx.recyclerview.widget.LinearLayoutManager;

import com.nunbey.lingxi.activities.IndexActivity;

/**
 * @description 不可滑动的LinearLayoutManager
 */
public class UnScrollableLinearLayoutManager extends LinearLayoutManager {
    public UnScrollableLinearLayoutManager(Context context, int orientation, boolean reverseLayout) {
        super(context, orientation, reverseLayout);
    }


    public UnScrollableLinearLayoutManager(Context context){
        super(context);
    }

    /**
     * @description 设置为水平不可滑动
     * @return
     */
    @Override
    public boolean canScrollHorizontally() {
        return false;
    }
    /**
     * @description 设置为垂直不可滑动
     * @return
     */
    @Override
    public boolean canScrollVertically() {
        return false;
    }
}
